package com.example.foodwebbackend.dto;

public class PageRequest {
    private int page;
    private int size;
    private String search;
    private Integer approvalStatus;

    public PageRequest() {}

    public PageRequest(int page, int size, String search) {
        this.page = page;
        this.size = size;
        this.search = search;
    }

    public PageRequest(int page, int size, String search, Integer approvalStatus) {
        this.page = page;
        this.size = size;
        this.search = search;
        this.approvalStatus = approvalStatus;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public Integer getApprovalStatus() {
        return approvalStatus;
    }

    public void setApprovalStatus(Integer approvalStatus) {
        this.approvalStatus = approvalStatus;
    }

    public int getOffset() {
        return (page - 1) * size;
    }
} 